//
//  DbgNet.h
//  BioBreak
//
//  Created by terry franguiadakis on 3/5/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <sys/socket.h>
#import "nnprotocol.h"

#if DEBUG

struct DbgSocket 
{
    int fd; // socket id
    struct sockaddr_in* address;
	socklen_t addrLen;
};

// the server collects stuff. type type type into a buffer. 
// the client has a thread that every x-amount of time asks the service for it's
// buffer. 

// listens for data from NurdNerve
@interface DbgNet : NSObject 
{
    struct DbgSocket    m_socket; // what nerd nerve talks to.
    id<NNCommandResponder>            delegate;
}

@property (readwrite, assign) id<NNCommandResponder> delegate;


- (id)startListener;
- (void)stopListener;
- (void)listener;

@end

#endif //DEBUG
